package club.zhilin.mall.product.domain;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

/**
 * spu销售属性
 * @Table spu_sale_attr
 */
@Table(value ="spu_sale_attr")
@Data
public class SpuSaleAttr {
    /**
     * 编号(业务中无关联)
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 商品id
     */
    private Long spuId;

    /**
     * 销售属性id
     */
    private Long baseSaleAttrId;

    /**
     * 销售属性名称(冗余)
     */
    private String saleAttrName;
}